<?php
/**
* Copyright 2009 Waag Society <http://www.waag.org>
* This file is part of Annotrax.
*
* Annotrax is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,
* or (at your option) any later version.
*
* Annotrax is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Annotrax.
* If not, see http://www.gnu.org/licenses/gpl.html
*/

?>
<?php
/**
 * View script for Default_Form_Login
 *
 */
?>
<form action="<?php echo $this->element->getAction() ?>" method="post" enctype="application/x-www-form-urlencoded">
    <h4><label class="required" for="openid_identifier">Login using an Open ID account*</label></h4>
    <input type="text" value="" id="openid_identifier" name="openid_identifier"/>
    <div class="formElementWrapper">
    <br/>
        <select id="endpoint" name="endpoint">
            <?php foreach( $this->element->endpoint->options as $value => $name ): ?>
                <option class="<?php echo strtolower( str_replace('.', '-', $name ) ) ?>" label="<?php echo $name ?>" value="<?php echo $value ?>">
                    <?php echo $name ?>
                </option>
            <?php endforeach; ?>
        </select>
    <em style="display: block;" class="description">* Choose "custom" to define your own url</em>
    </div>
    <br/>
    <input type="submit" name="openid_action" value="login">
</form>
